package com.jdz.service;

import com.jdz.common.ServerResponse;
import com.jdz.pojo.Announcemen;

import java.io.FileNotFoundException;
import java.util.List;

/**
 * Created by sun
 **/
public interface IAnnouncemenService {

    ServerResponse saveOrUpdateAnnouncemen(Announcemen announcemen);

    ServerResponse announcemenTop(List<Integer> annnoList);

    ServerResponse announcemenRemoveTop(List<Integer> annnoList);

    ServerResponse deleteAnnouncemen(List<Integer> annnoList);

    ServerResponse listAnnouncemen(int pageNum, int pageSize);

    ServerResponse listUserAnnouncemen(int pageNum, int pageSize, String name, String startTime, String stopTime,int time_sort);

    ServerResponse detailsAnnouncemen(Integer annno);

    ServerResponse searchAnnounceme(String name, int pageNum, int pageSize, int time_sort);

    ServerResponse search_index(String name) throws FileNotFoundException, Exception;
}
